package org.hsw.domain.strategy.service.rule.chain;

import org.hsw.domain.strategy.service.rule.chain.factory.DefaultChainFactory;

/**
 * 责任链接口
 */
public interface ILogicChain {
    /**
     *  责任链处理
     * @param userId 用户id
     * @param strategyId 策略id
     * @return 奖品id
     */
    DefaultChainFactory.StrategyAwardVO logic(String userId, Long strategyId);
    ILogicChain appendNext(ILogicChain next);
    ILogicChain next();
}
